package lab02.test32;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * Created by 14394 on 2017/11/3.
 */
public class Test {
    public static void main(String[] args) {
        Map<Long,String> map=new HashMap<>();
        map.put(1002l,"张三");
        map.put(1003l,"张二");
        map.put(1004l,"张一");
        for (Map.Entry<Long,String> entry:map.entrySet()){
            System.out.println(entry.getKey()+":"+entry.getValue());
        }

        Set<Integer> set=new HashSet<>();
        set.add(10);
        set.add(11);
        set.add(10);
        for (Integer n:set){
            System.out.println(n);
        }
    }
}
